<?php
    use User\Model\CardModel;
    use User\Model\CardRegisterModel;
?>
<div class="row">
    <div class="col-lg-12">
        <section class="panel">
            <header class="panel-heading">
                用户详情
            </header>
            <div class="panel-body">
                <form class="form-horizontal" method="post"  style="width: 70%;">

                    <div class="form-group">
                        <label class="col-sm-2 col-sm-2 control-label need">名称:</label>

                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="name" value="<?php $val = (!empty($cardRegister)) ?
                            $cardRegister['name'] : ''; echo $val;?>" disabled>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 col-sm-2 control-label need">手机号码:</label>

                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="mobile" value="<?php $val = (!empty($cardRegister)) ?
                            $cardRegister['mobile'] : ''; echo $val;?>" disabled>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 col-sm-2 control-label need">图片:</label>

                        <div class="col-sm-10">
                            <img src="<?php
                                if(!empty($cardRegister) && !empty($cardRegister['picurl'])){
                                    echo str_replace('thumb', '', $cardRegister['picurl']);
                                }
                            ?>" alt="">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 col-sm-2 control-label need">内容:</label>

                        <div class="col-sm-10">
                            <textarea class="form-control" disabled><?php $val = (!empty($cardRegister)) ?
                            $cardRegister['content'] : ''; echo $val;?></textarea>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-10">
                            <button class="btn btn-default" type="button" onclick="history.back(-1);">返回</button>
                        </div>
                    </div>

                </form>
            </div>
        </section>
    </div>
</div>